home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11443 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: keats.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c,comp.lang.c++
  4. Subject: Re: HELP! On how to declare large arrays.
  5. Date: 14 Mar 1996 08:40:12 -0800
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4i9i5cINNa8t@keats.ugrad.cs.ubc.ca>
  8. References: <lynch-1303962017180001@mac50.sask.trlabs.ca>
  9. NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
  10.  
  11. In article <lynch-1303962017180001@mac50.sask.trlabs.ca>,
  12. Denard Lynch <lynch@sask.trlabs.ca> wrote:
  13.  >
  14.  >I need to create an array of complex numbers that is 512 x 128 elements in
  15.  >size.  I am using Borland C, and it will not let me complie because the
  16.  >array is too large.  I have tried to increase the size when compliling to
  17.  >be 1 Mb for static variables, it did not work.
  18.  >
  19.  >WHAT CAN I DO? I need the 512 x 128 array size.  Any comments,
  20.  >suggestions, or help of any kind would be appreciated.  I am sure there is
  21.  >a way around this problem but I can not find it.
  22.  
  23. There are work-arounds involving using a different ``memory model'' (something
  24. that is specific to DOS environments). But since this is 1996, you should
  25. probably be upgrading to a 32-bit operating system.
  26.  
  27. The C standard doesn't require your compiler to translate a program that
  28. contains a declaration of a 512x128 array, so it's really not a topic
  29. for discussion here, so there is no problem as far as this newsgroup is
  30. concerned.  You may find more sympathy in comp.msdos.programmer.
  31. -- 
  32.  
  33.